﻿namespace SuperMarieApi.App.Controllers.Framework.DataAccess
{
    using System;
    using System.Data;

    [AttributeUsage(AttributeTargets.Property)]
    public class DataMapping : Attribute
    {
        public string ColumnName { get; internal set; }
        public DbType ColumnType { get; internal set; }

        public DataMapping(string columnName, DbType columnType)
        {
            this.ColumnName = columnName;
            this.ColumnType = columnType;
        }
    }
}
